package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 签到记录对象 sign
 *
 * @author ruoyi
 * @date 2025-11-02
 */
public class Sign extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号（自增） */
    @Excel(name = "序号", readConverterExp = "自=增")
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 上班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date workStart;

    /** 下班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date workEnd;

    /** 状态（0-正常，1-迟到，2-早退） */
    @Excel(name = "状态", readConverterExp = "0=-正常，1-迟到，2-早退")
    private Long status;

    /** 预留字段1 */
    private String reserved1;

    /** 预留字段2 */
    private String reserved2;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }

    public void setWorkStart(Date workStart)
    {
        this.workStart = workStart;
    }

    public Date getWorkStart()
    {
        return workStart;
    }

    public void setWorkEnd(Date workEnd)
    {
        this.workEnd = workEnd;
    }

    public Date getWorkEnd()
    {
        return workEnd;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    public void setReserved1(String reserved1)
    {
        this.reserved1 = reserved1;
    }

    public String getReserved1()
    {
        return reserved1;
    }

    public void setReserved2(String reserved2)
    {
        this.reserved2 = reserved2;
    }

    public String getReserved2()
    {
        return reserved2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("username", getUsername())
                .append("workStart", getWorkStart())
                .append("workEnd", getWorkEnd())
                .append("status", getStatus())
                .append("reserved1", getReserved1())
                .append("reserved2", getReserved2())
                .toString();
    }
}
